package com.xuan.task.service;

import com.xuan.task.Mapper.LogMapper;
import com.xuan.task.domain.Logs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * FileName: LogService
 * Author:   xuan zongjun
 * Date:     2020/8/24 13:47
 * Description:
 */

@Service
public class LogService {
    @Autowired
    LogMapper logMapper;

    /**
     * 添加日志
     * @param log
     * @return
     */
    public boolean insertLog(Logs log) {
        return logMapper.insert( log ) > 0;
    }


}
